﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="ContactUS.aspx.cs" Inherits="DoAnWeb.ContactUS" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table class="style1" cellpadding="5px">
        <tr>
            <td class="style2" colspan="2" 
                style="text-align: center; font-size: 33px; background-color: #CCCCFF;">
                <strong>Liên hệ</strong></td>
        </tr>
        
        <tr>
            <td width="30%">
            
                &nbsp;</td>
            
            <td>
            
                <asp:Label ID="lbThongBao" runat="server" ForeColor="Red" Visible="False"></asp:Label>
            
            </td>

        </tr>
        
        <tr>
            <td style="text-align: right" width="30%">
            
                Họ tên&nbsp;&nbsp;  </td>
            
            <td style="text-align: left">
            
                <asp:TextBox ID="txtHoTen" runat="server" style="text-align: left" 
                    Width="441px" Height="25px"></asp:TextBox>
            
                <asp:RequiredFieldValidator ID="rfvHoTen" runat="server" 
                    ControlToValidate="txtHoTen" ErrorMessage="Yêu cầu nhập đầu đủ họ tên" 
                    ForeColor="Red" SetFocusOnError="True">*</asp:RequiredFieldValidator>
            
            </td>

        </tr>
        <tr>
            <td style="text-align: right" width="30%">
            
                Email&nbsp;&nbsp; </td>
            
            <td style="text-align: left">
            
                <asp:TextBox ID="txtEmail" runat="server" style="text-align: left" 
                    Width="441px" Height="25px"></asp:TextBox>
            
                <asp:RequiredFieldValidator ID="rfvEmail" runat="server" 
                    ControlToValidate="txtEmail" ErrorMessage="Yêu cầu nhập Email" ForeColor="Red" 
                    SetFocusOnError="True" Display="Dynamic">*</asp:RequiredFieldValidator>
            
                <asp:RegularExpressionValidator ID="revEmail" runat="server" 
                    ControlToValidate="txtEmail" 
                    ErrorMessage="Định dạng email không đúng ! Ex: abc@abc.abc" ForeColor="Red" 
                    SetFocusOnError="True" 
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
            
            </td>

        </tr>
        
        <tr>
            <td style="text-align: right" width="30%">
            
                Tiêu đề&nbsp; &nbsp; </td>
            
            <td style="text-align: left">
            
                <asp:TextBox ID="txtTieuDe" runat="server" style="text-align: left" 
                    Width="441px" Height="25px"></asp:TextBox>
            
                <asp:RequiredFieldValidator ID="rfvTieuDe" runat="server" 
                    ControlToValidate="txtTieuDe" ErrorMessage="Yêu cầu nhập đầu đủ tiêu đề" 
                    ForeColor="Red" SetFocusOnError="True">*</asp:RequiredFieldValidator>
            
            </td>
        </tr>
        <tr>
            <td style="text-align: right" valign="top" width="30%">
            
                Nội dung&nbsp; &nbsp;</td>
            
            <td style="text-align: left">
            
                <asp:TextBox ID="txtNoiDung" runat="server" Height="112px" TextMode="MultiLine" 
                    Width="441px"></asp:TextBox>
            
                <asp:RequiredFieldValidator ID="rfvNoiDung" runat="server" 
                    ControlToValidate="txtNoiDung" ErrorMessage="Yêu cầu nhập nội dung" 
                    ForeColor="Red">*</asp:RequiredFieldValidator>
            
            </td>
            <tr>
                <td width="30%">
                
                    &nbsp;</td>
                    <td style="text-align: left">
                    
                        <asp:Button ID="btnGui" runat="server" Height="36px" Text="Gửi tin" 
                            Width="71px" onclick="btnGui_Click" />
&nbsp;&nbsp;
                        <asp:Button ID="btnNhapLai" runat="server" Height="36px" Text="Nhập lại" 
                            Width="71px" CausesValidation="False" onclick="btnNhapLai_Click" />
                    
                    </td>
                    
            </tr>
            <tr>
            
                <td height="150px">
                </td>
                <td height="150px" align="left" valign="top">
                    <asp:ValidationSummary ID="vsListError" runat="server" ForeColor="Red" 
                        HeaderText="List Error :" />
                </td>
            </tr>
        </tr>
        </table>
</asp:Content>
